package cn.zjh.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zjh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data//在编译得时候获取getset方法
@NoArgsConstructor//获取无参
@AllArgsConstructor//获取有参
public class Shop extends BaseDomain {
    //店铺名称
    @Excel(name = "店铺名称",orderNum = "1",width = 20)
    private String name;
    //电话
    @Excel(name = "电话",width = 20)
    private String tel;
    //入驻时间
    @Excel(name = "入驻时间",width = 30,exportFormat="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy:MM:dd",timezone = "GMT-8")
    private Date registerTime = new Date();
    //状态
    @Excel(name = "状态",width = 20)
    private Integer state = 1;
    //店铺地址
    @Excel(name = "店铺地址",width = 50)
    private String address;
    //logo
    @Excel(name = "logo",width = 50)
    private String logo;
    //店铺id
    private Long admin_id;
    //店铺管理员关联对象
    private Employee employee;

}
